/*
	conditionLanguage/condition.h
	@author:Wolfhead
*/
#ifndef WOLV_CONDITION_LANGUAGE_CONDITION_H
#define WOLV_CONDITION_LANGUAGE_CONDITION_H

#include <string>

#include "common.h"
#include "variable.h"

namespace wolv
{
namespace condition
{

class LocalContext;


class Condition
{
public:
	Condition();
	Condition(int op, Variable lho, Variable rho, const std::string& success_action, const std::string& fail_action);

	const std::string Exec();

	void SetContext(LocalContext* pContext);

private:
	int op_;
	Variable lho_;
	Variable rho_;
	std::string successAction_;
	std::string failAction_;
	LocalContext* pContext_;
};


}
}





#endif
